﻿<?php defined( '_JEXEC' ) or die( 'Restricted access' );?>

	    <div style="text-align:right; font-size:10px;"></div>
		<div id="sketchup_details">
			
       		<?php if ($this->project->finalist == 1): ?>
       			<span id="finalist_project">
        	 	<a href="<?php echo $this->vote_link; ?>"> <img src="<?php echo JURI::base(); ?>/components/com_sketchup/assets/images/finalist_dot.jpg"/> FINALIST </a><br/>
        		</span>
        	<?php endif ?>
		
		<span id="sketchup_title"><?php echo $this->project->p_title; ?></span><br/> 
		<span id="sketchup_designer">Designed by <?php echo $this->project->f_name; ?>&nbsp;<?php echo $this->project->l_name; ?></span>
		<div id="sketchup_sub_details"><p>From:&nbsp;<?php echo $this->project->city;?>,&nbsp;<?php echo $this->project->country; ?><br/>
                Shelter location: <?php echo $this->project->location; ?><br/>
				Date accepted: <?php echo $this->project->sub_date ?></p></div>
	
		</div>
		
		
		<div id="sketchup_decs" style="margin-bottom:20px;">
		<p><?php echo $this->project->p_description; ?></p>
		</div>
		
		<div id="sketchup_photos">
			<div id="skethup_photos_wrapper" class="clearfix" > 
			<div id="sketchup_photo1" ><?php echo $this->project->image2; ?></div>

			<div id="sketchup_photo2" ><?php echo $this->project->image1;?></div>
			<div id="sketchup_photo3" ><?php echo $this->project->image4; ?></div>

			<div id="sketchup_photo4" ><?php echo $this->project->image3; ?></div>
		</div>
		</div>	
  	
    	<div id="sketchup_2d"> <?php if ($this->show_2d){ echo $this->loadTemplate('2d'); }; ?> </div>
  		
		<div id="google_earth">
		<?php echo $this->loadTemplate('earth'); ?>
		<br/><em>Please be patient, the Google Earth API may take a few moments to load. Try refreshing the page if you have problems seeing the model.</em>
		</div>
		<br/>
		
		<?php if($this->project->v_url != "") : ?> 
		<div id="see_vid" align="center">
		
		<p><object width="320" height="265">
		
		<param name="movie" value="<?php echo $this->Project->v_clean;?>&hl=en&fs=1"></param>
		<param name="allowFullScreen" value="true"></param>
		<param name="allowscriptaccess" value="always"></param>
		<embed src="<?php $v_clean = str_replace("http://www.youtube.com/watch?v=", "http://www.youtube.com/v/", $this->project->v_url); echo $v_clean;?>&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="265"></embed></object></p>
		
		<p><strong>YouTube Link Code:</strong><input type="text" name="embed" id="embed" size="40" value="<?php echo $this->project->v_url; ?>"/></p>
		
		</div>
		
		<?php endif; ?> 
		
		<br/>
		<table id="bottom_links" width="100%" border="0" cellspacing="5" cellpadding="5">
  		<tr>
    	<td align="left"><a href="<?php echo $this->mlink; ?>" target="_blank">View this model in the Google 3D Warehouse</a></td>
  		
    	<td align="right">

                <?php if ($this->show_share)
        {
                echo $this->loadTemplate('share');
                };?> </td>
  		</tr>
		</table>
		
		
		 
		
	    
	    
	 
	
	
